package com.crm.service;

import com.crm.dto.BusinessDTO;
import com.crm.dto.GainDto;
import com.crm.pojo.Business;
import com.crm.pojo.BusinessRecord;
import com.crm.pojo.Referredsubject;
import com.crm.result.PageResult;
import com.crm.vo.BusinessVO;

import java.util.List;

public interface BusinessService {
    /**
     * 分页查询商机表
     * @param dto
     * @return
     */
   PageResult queryBusiness(BusinessDTO dto);
   /**
     * 新增商机
     * @param business
     */
    void addBusiness(Business business);

    /**
     * 根据Id查询商机详细信息
     * @param id
     * @return
     */
    Business getBusinessById(Long id);

    /**
     * 根据id查询历史沟通记录
     * @param id
     * @return
     */
    List<BusinessRecord> getHistory(Long id);

    PageResult queryBusinesspoll(BusinessDTO dto);

    void gain(GainDto dto);
}
